﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CRM.Database.Model.Settlements>" %>



<% Html.DevExpress().ComboBox(s =>
                                    {
                                        s.Name = "IdSettlement";
                                        s.Properties.ValueType = typeof (int);
                                        s.Properties.ValueField = "IdSettlement";
                                        s.Properties.TextField = "NameRu";
                                        s.Properties.EnableCallbackMode = true;
                                        s.Properties.CallbackPageSize = 20;
                                        s.Width = new Unit(200);
                                        s.Properties.IncrementalFilteringMode = IncrementalFilteringMode.Contains;
                                        s.CallbackRouteValues = new { Action = "CityCallback", key = Model.IdSettlement };
                                        s.Properties.ClientSideEvents.BeginCallback = "function(s, e) { e.customArgs['Region'] = IdRegion.GetValue(); }";
                                    }).BindList(Model.Regions.Settlements).Bind(Model.IdSettlement).GetHtml();%>